import React, { useEffect, useState } from 'react';
import { Swiper, SwiperSlide } from "swiper/react";
import 'swiper/swiper-bundle.css';
import style from './index.less'

const Banner = ({ homeData = {} }) => {
    console.log(homeData, 'homeData')
    return (
        <Swiper className={style['my_swiper']}>
            {
                homeData?.banner?.strcutData?.map(ads => {
                    return <SwiperSlide><img className={style['banner_img']} src={ads.image_url} /></SwiperSlide>
                })
            }
     
        </Swiper>
    )
}

export default Banner;